-#
  Copyright 2008 Garth Williams

  This file is part of CommandPost.

  CommandPost is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  CommandPost is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with CommandPost.  If not, see <http://www.gnu.org/licenses/>.


%table
  %tr
    %td{:valign => 'top'}
      .box-title Report Types
      .box
        - for report_type in @report_types
          .repot_type= link_to_remote h(report_type.name), :url => edit_report_type_path(report_type), :update => 'report_type', :method => :get
        .align-right
          %br
          = link_to_remote 'New Type', :url => new_report_type_path, :update => :report_type
    %td{:valign => 'top'}
      %img#loading_report_type{:src => '/images/loading.gif', :style => 'display: none;'}
      #report_type
